package com.API;

import java.util.Scanner;

public class Test09 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一串字符");
        String s = sc.nextLine();
        boolean a =dueiChang(s);
        System.out.println (a);
    }

    public static boolean dueiChang(String s) {
        StringBuffer sb = new StringBuffer(s);
        sb.reverse();
        String ss =  sb.toString();
        return s.equals(ss);



    }
}

